This page documents version 1.2 of the Motif library.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
LabelGadget is an instantiable widget and is also used as a
superclass for other button gadgets, such as
PushButtonGadget and ToggleButtonGadget.
LabelGadget can contain either text or a pixmap.
LabelGadget text is a compound string. Refer to the
_O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r'_s Guide for more information on
compound strings. The text can be multilingual, multiline,
and/or multifont. When a LabelGadget is insensitive, its
text is stippled, or the user-supplied insensitive pixmap is
displayed.
LabelGadget supports both accelerators and mnemonics
primarily for use in LabelGadget subclass widgets that are
contained in menus. Mnemonics are available in a menu
system when the button is visible. Accelerators in a menu
system are accessible even when the button is not visible.
The LabelGadget displays the mnemonic by underlining the
first matching character in the text string. The
accelerator is displayed as a text string adjacent to the
label text or pixmap.
LabelGadget consists of many margin fields surrounding the
text or pixmap. These margin fields are resources that may
be set by the user, but LabelGadget subclasses and Manager
parents also modify some of these fields. They tend to
modify the XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt, XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt, XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp, and
XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm resources and leave the XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh and
XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt resources as set by the application.
LabelGadget takes into account XXXXmmmmNNNNsssshhhhaaaaddddoooowwwwTTTThhhhiiiicccckkkknnnneeeessssssss in
determining its layout but does not draw the shadow. That
is, if XXXXmmmmNNNNsssshhhhaaaaddddoooowwwwTTTThhhhiiiicccckkkknnnneeeessssssss is greater than 0, LabelGadget
leaves space for the shadow, but the shadow does not appear.
In a LabelGadget XXXXmmmmNNNNttttrrrraaaavvvveeeerrrrssssaaaallllOOOOnnnn and XXXXmmmmNNNNhhhhiiiigggghhhhlllliiiigggghhhhttttOOOOnnnnEEEEnnnntttteeeerrrr are
forced to False inside Popup MenuPanes, Pulldown MenuPanes,
and OptionMenus. Otherwise these resources default to
+o XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____EEEENNNNDDDD (right alignment)-causes the
right sides of the lines of text to be
vertically aligned with the right edge of the
gadget. For a pixmap, its right side is
vertically aligned with the right edge of the
gadget.
The above descriptions for text are correct when
XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn is XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____LLLL____TTTTOOOO____RRRR;
the descriptions for XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____BBBBEEEEGGGGIIIINNNNNNNNIIIINNNNGGGG and
XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____EEEENNNNDDDD are switched when the resource is
Specifies the compound string when XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee is
XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG. If this value is NULL, it is
initialized by converting the name of the gadget
to a compound string. Refer to XXXXmmmmSSSSttttrrrriiiinnnngggg((((3333XXXX)))) for
more information on the creation and the structure
of compound strings.
XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee
Specifies the label type.
+o XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG - text displays XXXXmmmmNNNNllllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg
+o XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP - icon data in pixmap displays
XXXXmmmmNNNNllllaaaabbbbeeeellllPPPPiiiixxxxmmmmaaaapppp or XXXXmmmmNNNNllllaaaabbbbeeeellllIIIInnnnsssseeeennnnssssiiiittttiiiivvvveeeePPPPiiiixxxxmmmmaaaapppp